package com.poly.cms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.poly.common.database.domain.DefaultBaseEntity;
import lombok.Data;

/**
 * 内容基础对象 cms_content
 *
 * @author poly
 * @date 2023-10-25
 */
@Data
@TableName(value = "cms_content")
public class CmsContent extends DefaultBaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(type = IdType.ASSIGN_ID, value = "id")
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 来源
     */
    @TableField(value = "source")
    private String source;

    /**
     * 阅读数量
     */
    @TableField(value = "read_count")
    private Long readCount;

    /**
     * 是否置顶
     */
    @TableField(value = "top")
    private Integer top;

    /**
     * 是否推荐
     */
    @TableField(value = "recommend")
    private Integer recommend;

    /**
     * 关键字
     */
    @TableField(value = "keyword")
    private String keyword;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 公开
     */
    @TableField(value = "open_mode")
    private Integer openMode;

    /**
     * 频道编号
     */
    @TableField(value = "channel_id")
    private Long channelId;

    /**
     * 附件
     */
    @TableField(value = "annex")
    private String annex;

    /**
     * 状态
     */
    @TableField(value = "status")
    private Integer status;



}
